//
//  ImageSize.swift
//  Jock
//
//  Created by HD on 15/3/23.
//  Copyright (c) 2015年 Haidy. All rights reserved.
//

import UIKit

class ImageSize {
    
    var s: Size = Size()
    var m: Size = Size()
    
    class func analyse(json: JSON) -> ImageSize {
        var imageSize = ImageSize()
        imageSize.s.width = json["s"][0].intValue
        imageSize.s.height = json["s"][1].intValue
        imageSize.s.size = json["s"][2].int64Value
        imageSize.m.width = json["m"][0].intValue
        imageSize.m.height = json["m"][1].intValue
        imageSize.m.size = json["m"][2].int64Value
        return imageSize
    }
}
class Size {
    
    var width: Int!
    var height: Int!
    var size: Int64!
}